Action hook 'save_post_{$post->post_type}'

in WP Core File wp-includes/post.php at line 4880

Description

Fires once a post has been saved. The dynamic portion of the hook name, `$post->post_type`, refers to the post type slug. Possible hook names include: - `save_post_post` - `save_post_page`

Occurrences

Filename Line Number
wp-includes/post.php 4880
wp-includes/post.php 5062
wp-includes/class-wp-customize-manager.php 3115

Parameters

Type Name Description
int $post_id Post ID.
WP_Post $post Post object.
bool $update Whether this is an existing post being updated.

PHP Doc

/**
	 * Fires once a post has been saved.
	 *
	 * The dynamic portion of the hook name, `$post->post_type`, refers to
	 * the post type slug.
	 *
	 * Possible hook names include:
	 *
	 *  - `save_post_post`
	 *  - `save_post_page`
	 *
	 * @since 3.7.0
	 *
	 * @param int     $post_id Post ID.
	 * @param WP_Post $post    Post object.
	 * @param bool    $update  Whether this is an existing post being updated.
	 */